package com.hqbzl.chat.model;

import com.hqbzl.chat.constant.Constants;
import com.hqbzl.chat.protocol.MessageType;
import lombok.*;

import java.io.Serializable;

import static com.hqbzl.chat.constant.Constants.LOGIN_MSG_TYPE;

@Builder
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class LoginRequestMessage implements MessageType, Serializable {
    private String userName;
    private String password;

    @Override
    public int getMessageType() {
        return LOGIN_MSG_TYPE;
    }

    @Override
    public int getSequenceId() {
        return 0;
    }

}
